﻿ /* 基础重置 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
        }
        
        body {
            background-color: #f8f9fa;
            color: #333;
            line-height: 1.6;
        }
        
        /* 容器与布局 */
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }
        
        /* 头部优化 */
        .header {
            background: linear-gradient(135deg, #2c3e50, #1a2530);
            padding: 15px 0;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        
        .header .container {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
        }
        
        .logo {
            flex: 0 0 200px;
        }
        
        .logo img {
            height: 50px;
            width: auto;
            max-width: 100%;
        }
        
        /* 搜索区域优化 */
        .search-container {
            flex: 1;
            max-width: 600px;
            margin: 0 20px;
        }
        
        .search-form {
            display: flex;
        }
        
        .search-form input[type="text"] {
            flex: 1;
            padding: 12px 15px;
            border: none;
            border-radius: 4px 0 0 4px;
            font-size: 16px;
        }
        
        .search-form .btn {
            padding: 12px 20px;
            background: #e74c3c;
            color: white;
            border: none;
            border-radius: 0 4px 4px 0;
            cursor: pointer;
            font-weight: bold;
            transition: background 0.3s;
        }
        
        .search-form .btn:hover {
            background: #c0392b;
        }
        
        .search-engines {
            display: flex;
            margin-top: 10px;
            flex-wrap: wrap;
        }
        
        .search-engine {
            margin-right: 10px;
            padding: 5px 10px;
            background: rgba(255,255,255,0.1);
            color: white;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
            margin-bottom: 5px;
        }
        
        .search-engine.active {
            background: #e74c3c;
        }
        
        /* 导航优化 */
        .nav-container {
            background: white;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
            position: sticky;
            top: 0;
            z-index: 1000;
        }
        
        .main-nav {
            display: flex;
            overflow-x: auto;
            padding: 10px 0;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
        }
        
        .main-nav::-webkit-scrollbar {
            display: none;
        }
        
        .nav-item {
            flex: 0 0 auto;
            padding: 8px 15px;
            margin: 0 5px;
            color: #2c3e50;
            text-decoration: none;
            font-weight: 500;
            border-radius: 20px;
            white-space: nowrap;
            transition: all 0.3s;
        }
        
        .nav-item:hover, .nav-item.active {
            background: #3498db;
            color: white;
        }
        
        /* 内容区域优化 */
        .content {
            padding: 30px 0;
        }
        
        .breadcrumb {
            margin: 15px 0;
            font-size: 14px;
            color: #7f8c8d;
        }
        
        .breadcrumb a {
            color: #3498db;
            text-decoration: none;
        }
        
        .site-detail {
            background: white;
            border-radius: 8px;
            box-shadow: 0 3px 10px rgba(0,0,0,0.08);
            padding: 20px;
            margin-bottom: 30px;
        }
        
        .site-header {
            display: flex;
            flex-wrap: wrap;
            margin-bottom: 25px;
            border-bottom: 1px solid #ecf0f1;
            padding-bottom: 20px;
        }
        
        .site-logo {
            width: 120px;
            height: 120px;
            border-radius: 8px;
            overflow: hidden;
            background: #f5f7fa;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 25px;
        }
        
        .site-logo img {
            max-width: 80%;
            max-height: 80%;
            width: auto;
            height: auto;
        }
        
        .site-info {
            flex: 1;
            min-width: 300px;
        }
        
        .site-info h1 {
            font-size: 28px;
            color: #2c3e50;
            margin-bottom: 15px;
        }
        
        .site-meta {
            list-style: none;
        }
        
        .site-meta li {
            margin-bottom: 8px;
            font-size: 15px;
            display: flex;
        }
        
        .site-meta li strong {
            width: 80px;
            display: inline-block;
            color: #7f8c8d;
        }
        
        .site-content {
            line-height: 1.8;
        }
        
        .site-content h2 {
            font-size: 22px;
            color: #2c3e50;
            margin: 25px 0 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #3498db;
        }
        
        .site-content h3 {
            font-size: 18px;
            color: #2c3e50;
            margin: 20px 0 12px;
        }
        
        .site-content p, .site-content li {
            margin-bottom: 15px;
            font-size: 16px;
            color: #34495e;
        }
        
        .site-content ul {
            padding-left: 25px;
        }
        
        .site-content li {
            margin-bottom: 10px;
        }
        
        /* 相关站点 */
        .section-title {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 40px 0 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #3498db;
        }
        
        .section-title h2 {
            font-size: 22px;
            color: #2c3e50;
            font-weight: 700;
        }
        
        .items-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 25px;
        }
        
        .item-card {
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 3px 10px rgba(0,0,0,0.08);
            transition: transform 0.3s, box-shadow 0.3s;
        }
        
        .item-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        
        .item-img {
            height: 140px;
            background: #f5f7fa;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .item-img img {
            max-width: 80%;
            max-height: 80%;
            width: auto;
            height: auto;
        }
        
        .item-content {
            padding: 15px;
        }
        
        .item-content h3 {
            font-size: 16px;
            margin-bottom: 8px;
            color: #2c3e50;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        
        .item-content p {
            font-size: 14px;
            color: #7f8c8d;
            height: 60px;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            line-height: 1.5;
        }
        
        /* 页脚优化 */
        .footer {
            background: #2c3e50;
            color: white;
            padding: 40px 0 20px;
            margin-top: 50px;
        }
        
        .footer-content {
            text-align: center;
            padding: 20px 0;
        }
        
        .footer-links {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            margin: 15px 0;
        }
        
        .footer-link {
            color: #bdc3c7;
            margin: 0 10px;
            text-decoration: none;
            font-size: 14px;
        }
        
        .footer-link:hover {
            color: white;
        }
        
        .copyright {
            font-size: 14px;
            color: #95a5a6;
            margin-top: 20px;
            line-height: 1.8;
        }
        
        .copyright a {
            color: #bdc3c7;
            text-decoration: none;
        }
        
        .copyright a:hover {
            color: white;
            text-decoration: underline;
        }
        
        /* 返回顶部按钮 */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background: #e74c3c;
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 3px 10px rgba(0,0,0,0.2);
            opacity: 0;
            transition: opacity 0.3s;
            z-index: 999;
            font-size: 20px;
        }
        
        .back-to-top.visible {
            opacity: 1;
        }
        
        /* 响应式优化 */
        @media (max-width: 900px) {
            .items-grid {
                grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            }
        }
        
        @media (max-width: 768px) {
            .header .container {
                flex-direction: column;
            }
            
            .logo {
                margin-bottom: 15px;
                text-align: center;
            }
            
            .search-container {
                width: 100%;
                max-width: 100%;
                margin: 10px 0;
            }
            
            .site-header {
                flex-direction: column;
                text-align: center;
            }
            
            .site-logo {
                margin: 0 auto 20px;
            }
            
            .site-info {
                width: 100%;
            }
            
            .items-grid {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
                gap: 15px;
            }
            
            .section-title h2 {
                font-size: 18px;
            }
        }
        
        @media (max-width: 480px) {
            .items-grid {
                grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
                gap: 10px;
            }
            
            .site-logo {
                width: 100px;
                height: 100px;
            }
            
            .site-info h1 {
                font-size: 22px;
            }
            
            .site-meta li {
                font-size: 14px;
            }
            
            .site-content h2 {
                font-size: 20px;
            }
            
            .site-content h3 {
                font-size: 16px;
            }
            
            .site-content p, .site-content li {
                font-size: 14px;
            }
        }
        
         .prev-next-nav {
            display: flex;
            justify-content: space-between;
            margin: 25px 0;
            padding: 15px;
            background: #f9f9f9;
            border-radius: 8px;
            border: 1px solid #eee;
        }
        
        .prev-next-nav a {
            display: flex;
            align-items: center;
            color: #2c3e50;
            text-decoration: none;
            font-weight: 5;
            transition: all 0.3s;
        }
        
        .prev-next-nav a:hover {
            color: #e74c3c;
            transform: translateX(5px);
        }
        
        .prev-next-nav .prev-link:hover {
            transform: translateX(-5px);
        }
        
        .prev-next-nav .prev-link::before {
            content: "←";
            margin-right: 8px;
        }
        
        .prev-next-nav .next-link::after {
            content: "→";
            margin-left: 8px;
        }
        
        
        
       /* 分页样式 */
        .pagination {
            display: flex;
            justify-content: center;
            margin-top: 30px;
            padding: 10px 0;
        }
        
        .pagination a, .pagination span {
            display: inline-block;
            padding: 8px 16px;
            margin: 0 4px;
            background: white;
            border: 1px solid #e0e0e0;
            border-radius: 4px;
            text-decoration: none;
            color: #3498db;
            transition: all 0.3s;
        }
        
        .pagination a:hover {
            background: #3498db;
            color: white;
            border-color: #3498db;
        }
        
        .pagination .current {
            background: #3498db;
            color: white;
            border-color: #3498db;
        }
        
 
 
 
 /* 广告容器样式 */
.site-info {
    position: relative;
    padding-right: 320px; /* 为广告留出空间 */
    min-height: 180px; /* 确保有足够高度 */
}

.ad-container {
    position: absolute;
    right: 0;
    top: 0;
    width: 300px;
    height: 250px; /* 标准广告尺寸 */
}

/* 响应式调整 */
@media (max-width: 900px) {
    .site-info {
        padding-right: 0;
    }
    
    .ad-container {
        position: relative;
        width: 100%;
        margin-top: 20px;
    }
}



 /* 评分系统 */
        .rating-system {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin: 25px 0;
        }
        
        .rating-item {
            flex: 1;
            min-width: 200px;
            background: #fff;
            padding: 15px;
            border-radius: 8px;
            box-shadow: 0 3px 10px rgba(0,0,0,0.05);
            text-align: center;
        }
        
        .rating-title {
            font-size: 16px;
            margin-bottom: 10px;
            color: #2c3e50;
        }
        
        .rating-stars {
            color: #ffc107;
            font-size: 20px;
            margin-bottom: 8px;
        }
        
        .rating-value {
            font-weight: bold;
            color: #3498db;
        }


.site-contentr {
            padding: 25px;
        }
        
        .site-contentr h2 {
            color: #2d3748;
            border-left: 4px solid #4facfe;
            padding-left: 12px;
            margin: 25px 0 15px;
        }
        
        .site-contentr h3 {
            color: #4a5568;
            margin: 20px 0 12px;
        }
        
        .site-contentr p {
            margin-bottom: 15px;
            text-align: justify;
        }
        
        .site-contentr ul {
            padding-left: 20px;
            margin-bottom: 20px;
        }
        
        .site-contentr li {
            margin-bottom: 10px;
        }

 .main-visit-btn {
            display: block;
            background: linear-gradient(to right, #ff6b6b, #ff9a3d);
            color: white;
            text-align: center;
            padding: 15px;
            font-size: 18px;
            font-weight: bold;
            text-decoration: none;
            border-radius: 6px;
            margin: 25px 0;
            transition: all 0.3s;
            box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
        }
        
        .main-visit-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
        }
 
 
/* 添加到主题的style.css文件中或通过自定义CSS选项添加 */

/* 移动端分页固定栏 */
.mobile-pagination-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 12px 0;
    display: none; /* 默认隐藏，通过媒体查询在移动端显示 */
    border-top: 1px solid #eee;
}

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

.pagination-btn-container {
    flex: 1;
}

.pagination-btn-container a,
.pagination-btn {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #eee;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    background-color: #c62828;
    min-width: 100px;
    justify-content: center;
}

.pagination-btn-container.prev-container a,
.pagination-btn-container.prev-container .pagination-btn {
    justify-content: flex-start;
    float: left;
}

.pagination-btn-container.next-container a,
.pagination-btn-container.next-container .pagination-btn {
    justify-content: flex-end;
    float: right;
}

.pagination-btn-container a:hover {
    background-color: #0073aa;
    color: white;
    border-color: #0073aa;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background-color: #f5f5f5;
    color: #888;
}

.pagination-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.prev-container .pagination-icon {
    margin-right: 6px;
}

.next-container .pagination-icon {
    margin-left: 6px;
}

.pagination-label {
    font-size: 14px;
    font-weight: 500;
}

.pagination-info {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
    background-color: #f5f5f5;
    padding: 6px 12px;
    border-radius: 20px;
    min-width: 80px;
    justify-content: center;
    margin: 0 10px;
}

.current-page {
    font-weight: 600;
    color: #0073aa;
}

.separator {
    margin: 0 5px;
    color: #999;
}

.total-pages {
    font-weight: 500;
    color: #666;
}

/* 移动端显示（屏幕宽度小于768px） */
@media screen and (max-width: 767px) {
    .mobile-pagination-bar {
        display: flex;
    }
    
    /* 为WordPress管理栏腾出空间 */
    .admin-bar .mobile-pagination-bar {
        bottom: 46px;
    }
    
    /* 调整页面底部内边距，防止内容被遮挡 */
    body {
        padding-bottom: 70px;
    }
}

/* 平板端可选显示（屏幕宽度768px-1024px） */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .mobile-pagination-bar {
        display: flex; /* 可根据需要开启或关闭 */
    }
    
    .admin-bar .mobile-pagination-bar {
        bottom: 32px;
    }
    
    body {
        padding-bottom: 70px;
    }
}

/* 小屏幕手机优化 */
@media screen and (max-width: 360px) {
    .pagination-container {
        padding: 0 10px;
    }
    
    .pagination-btn-container a,
    .pagination-btn {
        min-width: 85px;
        padding: 6px 10px;
    }
    
    .pagination-label {
        font-size: 13px;
    }
    
    .pagination-info {
        min-width: 70px;
        font-size: 13px;
    }
}